package cn.edu.gdu.quizpractice.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.List;


@Data
@TableName("t_categories")
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Category {
    /**
     *
    * 分类id
    */
    @TableId(value = "category_id", type = IdType.AUTO)
    private Integer categoryId;

    /**
    * 分类名称
    */
    @NotBlank(message = "分类名称不能为空")
    private String categoryName;
}